<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>

<script>
//var reg = /a/gi;
obj = {};  // {}
console.log(obj.toString());
console.log(Math.toString());
console.log(/a/g.toString());

var msg = Object.prototype.toString.call(/a/);
console.log(msg);
console.log(Object.prototype.toString.call([]));
console.log(Object.prototype.toString.call(function (){

}));
function A(){

}
console.log(Object.prototype.toString.call(new A()));
console.log(Object.prototype.toString.call(document));
var msg = Object.prototype.toString.call([]);
console.log(/([ ])(\w+)(])/gi.exec(msg));

</script>
</body>
</html>
<!--
Object的toString()默认返回的字符串:  [object Object]

-->